<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<style>
@page {
    size: 400pt 300pt;
    margin: 50pt;
}

div {
    width: 300pt;
    height: 200pt;
    background-color: rgb(255 0 0 / 0.2);
}

div > div {
    width: 200pt;
}

div > div > div {
    width: 100pt;
}
</style>
</head>

<body>
    <div><div><div></div></div></div>
</body>

</html>
